import http from "@/api";

import { PORT1 } from "@/api/config/servicePort";


// 列表页表单数据
export const getApplicationDataApi = (params: FormData) => {
  return http.post(PORT1+`/km/markings-apply-orders/list`, params, { cancel: false,loading: false  });
};

// 列表页表头
export const getApplicationFieldApi = (params: FormData) => {
  return http.get(PORT1+`/km/markings-apply-orders/field`, params, { cancel: false,loading: false  });
};

//左侧菜单
export const getApplicationMenu = (params: FormData) => {
  return http.get(PORT1+`/km/markings-apply-orders/company-menu`, params, { cancel: false,loading: false  });
};

//高级搜索下拉菜单
export const getApplicationOption = (params: FormData) => {
  return http.get(PORT1+`/km/markings-apply-orders/search-options`, params, { cancel: false,loading: false  });
};


// 列表页行内编辑
export const updataApplicationFieldApi = (params: FormData) => {
  return http.post(PORT1+`/km/markings-apply-orders/edit`, params, { cancel: false,loading: false  });
};

// 列表页行内编辑
export const downloadPdfApi = (params: FormData) => {
  return http.get(PORT1+`/km/pdf/download`, params, { cancel: false,loading: false  });
};

// 列表页行内编辑
export const gtinTableField = (params: FormData) => {
  return http.get(PORT1+`/km/ismp-orders/gtin-pending-field`, params, { cancel: false,loading: false  });
};

// 列表页行内编辑
export const gtinTablelist = (params: FormData) => {
  return http.get(PORT1+`/km/ismp-orders/gtin-pending`, params, { cancel: false,loading: false  });
};